﻿<script type="text/javascript">
function Gadget(){
	var name = "ipad";
	this.getName = function(){
		return name;
	}
}

var toy = new Gadget();
console.log(toy.name);
console.log(toy.getName());
</script>